package com.tcode.service;

import java.sql.SQLException;
import java.util.List;

import com.tcode.bean.DeptBean;
import com.tcode.dao.DeptDao;
import com.tcode.dao.UserDao;
import com.tcode.utils.BeanFactory;

public class DeptService {
	
	DeptDao ud = (DeptDao) BeanFactory.getBean("deptDao");
	
	public List<DeptBean> selectAllDept() throws SQLException{
		return ud.searchAll();
	}

}
